package com.leejw.tradeblogsystem.service.impl;

import com.leejw.tradeblogsystem.mapper.UserMapper;
import com.leejw.tradeblogsystem.model.User;
import com.leejw.tradeblogsystem.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: jwli3
 * @Desc:
 * @create: 2024-08-15
 **/
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(String userName, String password) {
        return userMapper.login(userName,password);
    }

    @Override
    public User findUserById(Integer id) {
        return userMapper.selectByPrimaryKey(id);
    }
}
